#ifndef PAGEAUTOVERIFY_H
#define PAGEAUTOVERIFY_H

#include <QtGui>
#include <QWidget>

class pageAutoVerify : public QWidget
{
    Q_OBJECT
public:
    explicit pageAutoVerify(QWidget *parent = 0);
    QPushButton *btnTest;
//    bool test();//自检

    QCheckBox *chkCURR;
    QCheckBox *chkCURR_5;
    QCheckBox *chkCURR_20;
    QCheckBox *chkCURR_100;
    QCheckBox *chkCURR_120;

    QCheckBox *chkVOLT;
    QCheckBox *chkVOLT_20;
    QCheckBox *chkVOLT_50;
    QCheckBox *chkVOLT_80;
    QCheckBox *chkVOLT_100;
    QCheckBox *chkVOLT_120;

public:
    void setDataTP(QString);
    void setDataCP(QString);
    void setDataCURR(QString);
    void setDataVOLT(QString);

private:
    void layoutMain();
    void layTestPrjPart(QWidget *);
    void layDataTP(QWidget *);
    void layDataCP(QWidget *);
    void layDataCURR(QWidget *);
    void layDataVOLT(QWidget *);

private:
    int page;

    QStackedWidget *theStaWid;
    QWidget *widTestPrjForm;
    QWidget *widDataTP;
    QWidget *widDataCP;
    QWidget *widDataCURR;
    QWidget *widDataVOLT;

    pageAutoVerify *pageAuto;

private:
    QCheckBox *chkTP;//时间性能检验
    QCheckBox *chkCP;//通信性能检验
    QLabel *labAP;//准确度性能检验

    QStandardItemModel *model_CP;
    QStandardItemModel *model_TP;

    QStandardItemModel *model_CURR;
    bool isSelectCurrAll;  

    QStandardItemModel  *model_VOLT;
    bool isSelectVoltAll;

    QPushButton *btnAll;
    QPushButton *btnPre;
    QPushButton *btnNext;

signals:

public slots:
    void SelectAllCurrTestPoint(int);//选择电流所有点
    void SelectAllVoltTestPoint(int);//选择电压所有点
    void onStateChanged_Curr();//电流  状态改变
    void onStateChanged_Volt();//电压  状态改变
    void changeCurrState();//改变测量用电流状态
    void changeVoltState();//改变测量用电压状态
    void selectAll();//全选
    void prePage();//上一页
    void nextPage();//下一页
    bool test();//自检
};

#endif // PAGEAUTOVERIFY_H
